ACTS National Resource Center, Pune
Question Bank – XML (Solved/Unsolved)
4
4
0. The <attribute> element must be declared with either a named or anonymous complexType
1. The original XML document or byte stream is referred to as a source tree and the output is called
the result tree.
4
4
4
4
4
4
4
4
5
2. Location paths can be either abbreviated or unabbreviated
3. A synonym for <xsl:stylesheet> is <xsl:transform>
4. The instruction <xsl:element> is an example of an XSLT
5. Both <xsl:if> and <xsl:choose> help perform conditional
.
.
element.
processing.
6. The root element for XHTML is html
.
7. The root element must contain a namespace declaration.
8. In XHTML, always use a CDATA section inside the <script> element.
9. The forthcoming recommendation for small devices is called XHTML Basic
.
0. Document profiles defines the elements, etc. that are appropriate for a certain class of
document, without a formal recommendation.
Q.2Select True or False: (1 Mark each)
1
2
3
4
5
6
7
8
9
1
1
1
1
1
1
1
1
1
1
2
2
2
2
2
2
2
2
2
2
3
3
. XML will replace HTML as the leading language for the Web. (False)
. To use XML you must pay a small license fee to Sun Microsystems. (False)
. A URL is a subset of the URI naming scheme. (True)
. Namespaces in XML cause regrettable naming collisions. (False)
. Every XML document should have a prolog or XML declaration. (False)
. XML forms comments differently than SGML and HTML. (False)
. HTML elements must always properly nest. (False)
. Valid XML must also be well formed. (True)
. It is permissible, but not mandatory, to quote XML attribute values. (False)
0. An internal subset requires a SYSTEM identifier. (False)
1. An external subset requires a URI. (True)
2. A validity error is always fatal. (False)
3. XML does not necessarily have to be well-formed, but it must be valid. (False)
4. An element name can begin with any character that is legal in an element. (False)
5. Child element and mixed content models must be enclosed in quotes. (False)
6. A semicolon delimits element names in a sequence list. (False)
7. A hexadecimal value representing an RGB triplet can be expressed in three or six digits. (True)
8. You can skip quotation marks around an attribute value. (False)
9. If you reuse a unique ID, it should generate a validity error. (True)
0. An unparsed entity is a non-XML data type. (True)
1. Certain attributes are permissible in end-tags. (False)
2. CSS/2’s attribute selector is fully implemented in the Netscape and Microsoft browsers. (False)
3. An unparsed entity may require a helper application to render it. (True)
4. Predefined entities represent special markup characters. (True)
5. Parameter entity references begin with an ampersand. (False)
6. Unicode characters can be represented by hexadecimal numbers. (True)
7. Conditional sections are legal in XML documents as well as DTDs. (False)
8. Namespaces can be associated with schemas by a URI. (True)
9. A URI can be either a URL or a URN. (True)
0. Default namespaces apply to attributes. (False)
1. XML namespaces are not associated with objects. (True)
Page 2 of 2